﻿using ChurchDiary.BLL;
using ChurchDiary.TableEntity;
using ChurchWebsite.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ChurchWebsite.Areas.Church.Controllers
{
    public class ChurchAssertsController : BaseController
    {
        //
        // GET: /Church/ChurchAsserts/

        public ActionResult Index()
        {
            return View();
        }
        public JsonResult AddChurchAsserts(EntityChurchAsserts ChurchAsserts)
        {
            return Json(new BLL_Church().AddChurchAssert(ChurchAsserts),JsonRequestBehavior.AllowGet);
        }
        public JsonResult UpdateChurchAsserts(EntityChurchAsserts ChurchAsserts)
        {
            return Json(new BLL_Church().UpdateChurchAssert(ChurchAsserts), JsonRequestBehavior.AllowGet);
        }
        public JsonResult DeleteChurchAsserts(Guid dataId)
        {
            return Json(new BLL_Church().DeleteChurchAsserts(dataId), JsonRequestBehavior.AllowGet);
        }
        public JsonResult GeChurchAssert(Guid dataId)
        {
            return Json(new BLL_Church().GetChurchAsserts(dataId), JsonRequestBehavior.AllowGet);
        }
        public JsonResult GetChurchAsserts()
        {
            return Json(new BLL_Church().GetChurchAsserts(), JsonRequestBehavior.AllowGet);
        }

    }
}
